/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.suai.dao.impl;

/**
 *
 * @author awm
 */
public class PackageImpl implements org.suai.dao.Package {

    private int systemNumber;
    private int ownerNumber;


    public PackageImpl(int systemNumber, int ownerNumber) {
        this.systemNumber = systemNumber;
        this.ownerNumber = ownerNumber;
    }

    public void setSystemNumber(int systemNumber) {
        this.systemNumber = systemNumber;
    }

    public int getSystemNumber() {
        return systemNumber;
    }

    public int getOwnerNumber() {
        return ownerNumber;
    }


    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PackageImpl other = (PackageImpl) obj;
        if (this.systemNumber != other.systemNumber) {
            return false;
        }
        if (this.ownerNumber != other.ownerNumber) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 29 * hash + this.systemNumber;
        hash = 29 * hash + this.ownerNumber;
        return hash;
    }

    


}
